package com.feeyo.monitor.service;

import java.util.List;
import java.util.Map;

import com.feeyo.monitor.utils.DeptTreeNode;
import org.postgresql.util.PSQLException;

import com.feeyo.monitor.domain.Department;

public interface DepartmentService {
	public List<Department> selectByPage(Map param);
	public List<DeptTreeNode> selectByTree(Map param,String parentid);
	public Department selectByPrimaryKey(String id) throws PSQLException;
	int updateDeleteStatus(String deptId);
	int insert(Department record);
	int updateByPrimaryKeySelective(Department record);
    int updateChildDeleteStatus(String parentId);
    List<String> selectTreeNode(String depId);

    String selectIdByDept1(String name);
    String selectIdByDept1AndDept2(String name,String parentid);
}
